package org.exteen.lib;

import java.util.HashMap;
import java.util.List;


public final class LibraryMap extends HashMap<String, TagLibrary> {

    private static final long serialVersionUID = 1508118000293707873L;

    public void addLibrary(TagLibrary library) {
        put(library.getId(), library);
    }

    public void addAll(List<? extends TagLibrary> libs) {
        for (TagLibrary lib: libs) {
            put(lib.getId(), lib);
        }
    }
}
